package com.hskn.hss.utils.redis.key;

import com.hskn.hss.utils.redis.BasePrefix;

/**
 * 登录用户ID和ticket对应关系
 */
public class LoginUidAndTicketKey extends BasePrefix {

    //过期时间为60分钟
    public static final int TOKEN_EXPIRE = 60 * 60;

    public static final String LOGIN_UID_TICKET_PREFIX = "LOGIN_UID_TICKET_";

    private LoginUidAndTicketKey(int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }

    public static LoginUidAndTicketKey token = new LoginUidAndTicketKey(TOKEN_EXPIRE, LOGIN_UID_TICKET_PREFIX);
}
